package entity;

public class Goods {
	int id;
	String name;
	int price;
	int num;
	public boolean selling;
	public Goods() {
		id = 0;
		name = null;
		price = 0;
		int num = 0;
		selling = false;
	}
	public Goods(int id, String name, int price, int num, boolean selling) {
		super();
		this.id = id;
		this.name = name;
		this.price = price;
		this.num = num;
		this.selling = selling;
	}
	public Goods(int id2, String name2, int price2,int num2) {
		this.id = id;
		this.name = name;
		this.price = price;
		this.num = num2;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public boolean isSelling() {
		return selling;
	}
	public void setSelling(boolean selling) {
		this.selling = selling;
	}
	
}
